package com.industrial.premu.service.impl;

import java.util.List;

import com.industrial.common.core.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.premu.mapper.PreMuBenefitEvaluationAppealDetailsMapper;
import com.industrial.premu.domain.PreMuBenefitEvaluationAppealDetails;
import com.industrial.premu.service.IPreMuBenefitEvaluationAppealDetailsService;

/**
 * 企业数据申诉-详情Service业务层处理
 * 
 * @author zhous
 * @date 2024-01-26
 */
@Service
public class PreMuBenefitEvaluationAppealDetailsServiceImpl implements IPreMuBenefitEvaluationAppealDetailsService 
{
    @Autowired
    private PreMuBenefitEvaluationAppealDetailsMapper preMuBenefitEvaluationAppealDetailsMapper;

    /**
     * 查询企业数据申诉-详情
     * 
     * @param id 企业数据申诉-详情主键
     * @return 企业数据申诉-详情
     */
    @Override
    public PreMuBenefitEvaluationAppealDetails selectPreMuBenefitEvaluationAppealDetailsById(String id)
    {
        return preMuBenefitEvaluationAppealDetailsMapper.selectPreMuBenefitEvaluationAppealDetailsById(id);
    }

    /**
     * 查询企业数据申诉-详情列表
     * 
     * @param preMuBenefitEvaluationAppealDetails 企业数据申诉-详情
     * @return 企业数据申诉-详情
     */
    @Override
    public List<PreMuBenefitEvaluationAppealDetails> selectPreMuBenefitEvaluationAppealDetailsList(PreMuBenefitEvaluationAppealDetails preMuBenefitEvaluationAppealDetails)
    {
        return preMuBenefitEvaluationAppealDetailsMapper.selectPreMuBenefitEvaluationAppealDetailsList(preMuBenefitEvaluationAppealDetails);
    }

    /**
     * 新增企业数据申诉-详情
     * 
     * @param preMuBenefitEvaluationAppealDetails 企业数据申诉-详情
     * @return 结果
     */
    @Override
    public int insertPreMuBenefitEvaluationAppealDetails(PreMuBenefitEvaluationAppealDetails preMuBenefitEvaluationAppealDetails)
    {
        preMuBenefitEvaluationAppealDetails.setId(IdUtils.simpleUUID());
        return preMuBenefitEvaluationAppealDetailsMapper.insertPreMuBenefitEvaluationAppealDetails(preMuBenefitEvaluationAppealDetails);
    }

    /**
     * 修改企业数据申诉-详情
     * 
     * @param preMuBenefitEvaluationAppealDetails 企业数据申诉-详情
     * @return 结果
     */
    @Override
    public int updatePreMuBenefitEvaluationAppealDetails(PreMuBenefitEvaluationAppealDetails preMuBenefitEvaluationAppealDetails)
    {
        return preMuBenefitEvaluationAppealDetailsMapper.updatePreMuBenefitEvaluationAppealDetails(preMuBenefitEvaluationAppealDetails);
    }

    /**
     * 批量删除企业数据申诉-详情
     * 
     * @param ids 需要删除的企业数据申诉-详情主键
     * @return 结果
     */
    @Override
    public int deletePreMuBenefitEvaluationAppealDetailsByIds(String[] ids)
    {
        return preMuBenefitEvaluationAppealDetailsMapper.deletePreMuBenefitEvaluationAppealDetailsByIds(ids);
    }

    /**
     * 删除企业数据申诉-详情信息
     * 
     * @param id 企业数据申诉-详情主键
     * @return 结果
     */
    @Override
    public int deletePreMuBenefitEvaluationAppealDetailsById(String id)
    {
        return preMuBenefitEvaluationAppealDetailsMapper.deletePreMuBenefitEvaluationAppealDetailsById(id);
    }

    @Override
    public int updateByFieldName(PreMuBenefitEvaluationAppealDetails preMuBenefitEvaluationAppealDetails) {

        return preMuBenefitEvaluationAppealDetailsMapper.updateByFieldName(preMuBenefitEvaluationAppealDetails);
    }

    @Override
    public int updatebyId(PreMuBenefitEvaluationAppealDetails preMuBenefitEvaluationAppealDetails) {
        return preMuBenefitEvaluationAppealDetailsMapper.updatebyId(preMuBenefitEvaluationAppealDetails);
    }
}
